<template>
  <el-result title="404" sub-title="找不到此页面">
    <template #icon>
      <icon
        :type="ICON_TYPE.SVG"
        :style="{ width: '280px', height: '280px' }"
        name="404"
      />
    </template>
    <template #extra>
      <el-button type="primary" @click="$router.back()">返回上一页</el-button>
      <el-button type="primary" @click="$router.replace(REDIRECT_HOME_PATH)"
        >返回首页</el-button
      >
    </template>
  </el-result>
</template>

<script setup>
import { ICON_TYPE } from '@/const'
import { REDIRECT_HOME_PATH } from '@/const/router'
</script>
